# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from intraorg.dict.models import *

#każda metoda w intraorgie musi mieć:
#request.session['prev']=request.path
#i musi zwracać między innymi:
#{'session':request.session}

urlpatterns = patterns('', 
    (r'^$', 'intraorg.dict.views.dict'),
    (r'^(miasto|kraj)/$', 'intraorg.dict.views.dict'),    #ok
    (r'^(miasto|kraj)/(\d+)/$', 'intraorg.dict.views.details'), #ok ?P<object_id>\d+
    (r'^kraj/new/$', 'intraorg.dict.views.kraj_new'),
    (r'^miasto/new/$', 'intraorg.dict.views.miasto_new'),
    (r'^miasto/new/(.*)/$', 'intraorg.dict.views.miasto_new'),
    
)
